angular.module("myApp")
.controller("HomeController",["$scope","$location","$state","HomeService",
    function($scope,$location,$state,HomeService){
        
        // home轮播图配置
        var mySwiper = new Swiper ('.swiper-container', {
                direction: 'horizontal',
                loop: true,
                autoplay : 3000,
                speed:300,
                // 如果需要分页器
                pagination: '.swiper-pagination'
        })

        $scope.startTime = function(){
            strTime();
        };

        $scope.fn2 = function($event){
            var addr = $event.target.innerHTML;
            console.log(addr);
            window.localStorage.address = addr;
        }

}])
